package cn.sciento.boot.tenant.hiam.app.service.impl;

import cn.sciento.core.domain.Page;
import io.choerodon.mybatis.pagehelper.PageHelper;
import io.choerodon.mybatis.pagehelper.domain.PageRequest;
import java.util.List;
import cn.sciento.boot.tenant.hiam.app.service.TenantInitLogService;
import cn.sciento.boot.tenant.hiam.domain.entity.TenantInitLog;
import cn.sciento.boot.tenant.hiam.infra.mapper.TenantInitLogMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TenantInitLogServiceImpl implements TenantInitLogService {
  @Autowired
  private TenantInitLogMapper tenantInitLogMapper;
  
  public Page<TenantInitLog> pageTenantInitTenantInitLog(PageRequest pageRequest, TenantInitLog tenantInitLog) {
    return PageHelper.doPageAndSort(pageRequest, () -> this.tenantInitLogMapper.selectTenantInitLog(tenantInitLog));
  }
}
